
#include <iostream>
#include <cstdio>
using namespace std;

//member class object
class Foo0
{
public:
  Foo0(){ cout<<"Foo0()"<<endl;}
};

class Foo1
{
public:
  Foo1(int i){ cout<<"Foo1()"<<endl;}
};

class Bar0
{
public:
  Bar0() { cout<<"Bar0()"<<endl; }
};
class Bar1
{
public:
  Bar1(int i){cout<<"Bar1(int i)"<<endl;}
};

class FooBar:public Foo0,public Foo1
{
  Bar0 b0;
  Bar1 b1;
public:
  FooBar():Foo1(12),b1(1212){cout<<"FooBar()"<<endl; }
};

int main(void)
{
 
  FooBar foobar;

  return 0;
}
